package com.situ.crm2026.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Getter
@Setter
@TableName("member_course_reservation")
public class MemberCourseReservation {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer memberId;
    private Integer courseId;
    private Integer courseType;//课程类型 团课0 私课1
    private LocalDateTime createdAt;
    private Integer status; // 0:待确认, 1:已确认, 2:已取消

    public MemberCourseReservation() {}


    public MemberCourseReservation(Integer memberId, Integer courseId) {
        this.memberId = memberId;
        this.courseId = courseId;
        this.status = 0; // 默认待确认
    }
    public MemberCourseReservation(Integer memberId, Integer courseId ,Integer status,Integer courseType) {
        this.memberId = memberId;
        this.courseId = courseId;
        this.status = status; //
        this.courseType = courseType;
    }
    // 非数据库字段，用于存储课程信息
    @TableField(exist = false)
    private Course course;
}
